//
//  MessageObject.m
//  QoilPublic
//
//  Created by SunChao on 17/8/31.
//  Copyright © 2017年 杨凯. All rights reserved.
//

#import "MessageObject.h"

@implementation MessageObject
//进行编码的协议方法
- (void)encodeWithCoder:(NSCoder *)aCoder
{
    //编码
    [aCoder encodeObject:self.userInfo forKey:@"userInfo"];
}

//进行解码的协议方法
- (nullable instancetype)initWithCoder:(NSCoder *)aDecoder
{
    //解码
    if (self = [super init])
    {
        self.userInfo = [aDecoder decodeObjectForKey:@"userInfo"];
    }
    
    return self;
}
@end
